<?php

namespace app\rongcui\validate;

use think\Validate;

class FollowValidate extends Validate
{
    protected $rule = [
        'remark' => 'require',
        'pid' => 'require|number',
        'type' => 'require|number',
    ];

    protected $message = [
        'remark.require' => '跟进记录不能为空',
        'pid.require' => '所属记录不能为空',
        'pid.number' => '所属记录错误',
        'type.require' => '跟进类别不能为空',
        'type.number' => '跟进类别错误',
    ];

    protected $scene = [
        'edit' => ['remark|pid'],
    ];
}